<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<s:layout-render name="/layout.jsp" title="${login}">
    <s:layout-component name="menu">
    </s:layout-component>
    <s:layout-component name="main_content">
        <div class="main-content">
            <div class="content">
                <img src="${pageContext.request.contextPath}/images/banner.png" alt="Banner" id="banner"/>
                <h1><f:message key="login"/></h1>
                <s:form beanclass="cz.muni.fi.pa165.creatures.web.LoginActionBean">
                    <%-- If the security servlet attached a targetUrl, carry that along. --%>
                    <p><f:message key="provide.information"/>:</p>
                    <%@include file="/forms/loginUser.jsp" %>
                    <s:hidden name="targetUrl" value="${request.parameterMap['targetUrl']}"/>
                    <s:submit name="login"><f:message key="login"/></s:submit>                  
                </s:form>
                <div>
                    <f:message key="dont_have_account"/>
                    <s:link href="/register.jsp"><f:message key="dont_have_account_link"/></s:link>!
                    </div> 
                </div>   
            </div>
    </s:layout-component>
</s:layout-render>
